You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > Vector Structure > Vector Methods > Vector.GatherSplit Method
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
Vector.GatherSplit Method

Gather a vector, split to two vectors.

Syntax
C#
Visual Basic
public TVec GatherSplit([In] TMtxVec MaskVec, [In] TMtxVec NotMaskVec, [In] TVecInt Mask);

If the elements of a vector have been split with a Mask and the "positive" elements have been stored in the MaskVec and "negative" elements have been stored in the NotMaskVec, this routine will restore the original vector. 

The length of the MaskVec vector must be equal to the number of ones in the Mask vector. The length of the NotMaskVec vector must be equal to the number of zeroes in the Mask vector.

FindAndSplit

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!